package com.system.weirdor.module.mapper;

import com.system.weirdor.module.entity.Resource;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.system.weirdor.module.entity.ResourceEntity;

import java.util.List;

/**
 * <p>
  * 菜单管理 Mapper 接口
 * </p>
 *
 * @author Weridor
 * @since 2017-08-31
 */
public interface ResourceMapper extends BaseMapper<Resource> {

    List<String> listUserPerms(Long userId);

    List<ResourceEntity> listMenu();

    Object listUserMenu(Long userId);

    List<ResourceEntity> listParentId(long parentId);
}